package org.openmore.opc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

@EnableTransactionManagement
@ServletComponentScan("org.openmore.opc.service")
@MapperScan(value = "org.openmore.opc.dao")
@ComponentScan(basePackages = "org.openmore.opc," +
        "org.openmore.opc.service," +
        "org.openmore.opc.service.impl,"+
        "org.openmore.opc.dao,"+
        "org.openmore.opc.framework,"+
        "org.openmore.opc.configuration,"+
        "org.openmore.opc.controller")
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class OpenMoreOpcApplication {

    public static void main(String[] args) {
        SpringApplication.run(OpenMoreOpcApplication.class,args);
    }
}

